/**
 * 
 */
package com.quiz.activity;

import android.os.Bundle;
import android.preference.PreferenceActivity;
import android.widget.TextView;

import com.flurry.android.FlurryAgent;
import com.quiz.activity.util.QuizUtil;


/**
 *
 * @author Brian Boyle
 * Apr 23, 2012
 */
public class SettingsActivity extends PreferenceActivity {

    /**
     * {@inheritDoc}
     */
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        FlurryAgent.onStartSession(this, QuizUtil.FLURRY_KEY);

        addPreferencesFromResource(R.xml.preferences);
        setContentView(R.layout.settings);
        TextView settingsHeader = (TextView) findViewById(R.id.settingsHeader);
        QuizUtil.setMafiaFont(settingsHeader, 48, getAssets());
    }

    /**
     * {@inheritDoc}
     */
    @Override
    protected void onStop() {
        super.onStop();
        FlurryAgent.onEndSession(this);
    }
}
